#ifndef MAINLOGIN_H
#define MAINLOGIN_H
#include "NewUser.h"
#include "chairwindow.h"
#include "adminwindow.h"
#include "InstructorWindow.h"
#include "user.h"
#include "admindata.h"
#include <QDebug>
#include <QWidget>
#include <QLineEdit>
#include <QPalette>
#include <QMainWindow>
#include <QDataStream>

#define ADMIN 1
#define CHAIR 2
#define INSTRUCTOR 3

namespace Ui {
class MainLogin;
}

class MainLogin : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainLogin(QWidget *parent = 0, AdminData *newData = 0);
    ~MainLogin();



private slots:
    void on_newUserButton_clicked();
    void on_loginButton_clicked();
    void on_nameEdit_cursorPositionChanged(int arg1, int arg2);


private:
    Ui::MainLogin *ui;
    QPalette palette;
    AdminData *data;
    QVector<User> *users;

};

QDataStream &operator<<(QDataStream &out, const MainLogin &data);
QDataStream &operator>>(QDataStream &in, MainLogin &data);

#endif // MAINLOGIN_H
